<?php 

 $email = $_POST["email"];
 $link = mysql_connect("localhost","root","")or die("Problemas en la conexion");
  mysql_select_db("personalizatuweb", $link);

 $result = mysql_query("SELECT * FROM usuarios where EMAIL='".$email."'", $link) or die("Problemas al comprobar el email:".mysql_error());
  
      $CantResult = mysql_num_rows($result);
	  
	  if($CantResult > 0){
		 echo 0;
	  }else
	  echo 1;





?>